package com.ljc.nacos.servicegoods.payment;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ljchen on 0004, 2022年3月4日
 */
@RestController
public class ProviderServiceGoodsController {
    @Value("${server.port}")
    private String serverPort;

    @GetMapping(value = "/provider/nacos/{id}")
    public String getGoodsServiceProvider(@PathVariable("id") Integer id){
        return  "nacos registry,serverPort:" + serverPort+"\t id " + id;
    }
}
